# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-rtslib
_pkgname=rtslib-fb
pkgver=2.1_p75
_ver=${pkgver/_rc/rc}
_ver=${_ver/_p/.}
pkgrel=3
pkgdesc="Python library that provides an object API to RisingTide Systems generic SCSI Target"
options="!check" # No testsuite
url="https://github.com/open-iscsi/rtslib-fb"
arch="noarch"
license="Apache-2.0"
depends="py3-udev python3 py3-six"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="https://github.com/open-iscsi/rtslib-fb/archive/v$_ver.tar.gz"
builddir="$srcdir"/$_pkgname-$_ver

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --root="$pkgdir"
}

sha512sums="
204729e779da1d0961ecff822c6ce914de5fa80e8159f440e0e69a7ba986da6d627a6377c143043d855bcaacaf086f4c73f3ccb4697dfaf061434c197ae24c3e  v2.1.75.tar.gz
"
